/* 
 * File:   Logger.cpp
 * Author: Gab'z
 * 
 * Created on 8 juin 2012, 13:45
 */

#include "Logger.h"
#include "LogSystem.h"
#include "LogMessage.h"

namespace calculator {

    Logger::Logger(const std::string& classname) : _classname(classname) {

    }

    Logger::~Logger() {
    }

    void Logger::trace(const std::string& message) {
        LogSystem::log(LogMessage(LogSystem::TRACE, message, _classname));
    }

    void Logger::debug(const std::string& message) {
        LogSystem::log(LogMessage(LogSystem::DEBUG, message, _classname));
    }

    void Logger::error(const std::string& message) {
        LogSystem::log(LogMessage(LogSystem::ERROR, message, _classname));
    }
}
